<?php

namespace App\Services\Api;

/**
 * 获取地区字典缓存接口
 */
class SPECIALIST10001
{
    public $apiCode = 'SPECIALIST#10001';
    public $pageNo = 1;
    public $pageSize = 10;
    public $areaId = -1;
    public $clazz = 1;

    public function getInitPostData($postData)
    {
        return [
            'pageNo' => $this->getPageNo(@$postData['pageNo']),
            'pageSize' => $this->getPageSize(@$postData['pageSize']),
            'areaId' => $this->getAreaId(@$postData['areaId']),
            'clazz' => $this->getClazz(@$postData['clazz']),
        ];
    }

    public function getPageNo($pageNo = '')
    {
        return $pageNo ? $pageNo : $this->pageNo;
    }

    public function getPageSize($pageSize = '')
    {
        return $pageSize ? $pageSize : $this->pageSize;
    }

    public function getAreaId($areaId = '')
    {
        return $areaId ? $areaId : $this->areaId;
    }
    public function getClazz($clazz)
    {
        return $clazz ? $clazz : $this->clazz;
    }

    public function getInitApiCode()
    {
        return $this->apiCode;
    }

}
